import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqSPeaceFieldRewardHelper } from "./SeqSPeaceFieldRewardHelper";
type int = number;
//class SSeqSPeaceFieldReward
    
    export  class SSeqSPeaceFieldReward extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SSeqSPeaceFieldReward();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            SeqSPeaceFieldRewardHelper.write(arg1, this.peaceFieldRewards);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.peaceFieldRewards = SeqSPeaceFieldRewardHelper.read(arg1);
            return;
        }

        public /* const */_type: int=173;

        public /* var */peaceFieldRewards: Array<any>;

        public static /* var */_regist: SSeqSPeaceFieldReward;
    }

            SSeqSPeaceFieldReward._regist = new SSeqSPeaceFieldReward(true);
        